package work20241126_27;

/**
 * @author zdl
 * @date 2024/11/26
 */
public class Demo8 {
    public static void main(String[] args) {
        //创建一个字符数组，输出数组中所有大写字母。
        char[] arr = {'A','B','c','R'};
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] >= 'A' && arr[i] <= 'Z'){
                System.out.println(arr[i]);
            }
        }
    }
}
